package PHANVANVUONG.ARRAY.HOMEWORK;

public class Models02 {
	public static int average(int[] A){
		int s=0;
		for(int i=0; i<A.length; i++){
			s += A[i];
		}
		s /= A.length;
		return s;
	}
	
	public static double average(double[] A){
		double s=0;
		for(int i=0; i<A.length; i++){
			s += A[i];
		}
		s /= A.length;
		
		return s;
	}
}
